<?php

use Carbon\Carbon;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class GenresTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
    	$genres = [
    		[
    			'id' => 1,
    			'project_id' => 1,
    			'code' => 'normal',
    			'name' => '日班',
    			'start' => '08:00:00',
    			'end' => '18:00:00',
    			'created_at' => Carbon::now(),
    			'updated_at' => Carbon::now()
			],[
    			'id' => 2,
    			'project_id' => 1,
    			'code' => 'night',
    			'name' => '夜班',
    			'start' => '20:00:00',
    			'end' => '08:00:00',
    			'created_at' => Carbon::now(),
    			'updated_at' => Carbon::now()
			]
		];

    	DB::table('genres')->insert($genres);
    }
}
